package com.example.comsys.dao;

import com.example.comsys.dataobject.AttendDO;
import com.example.comsys.param.AttendQueryParam;
import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface AttendDAO {

  int deleteByPrimaryKey(Long id);

  int insert(AttendDO record);

  AttendDO selectByPrimaryKey(Long id);

  List<AttendDO> selectByParam(AttendQueryParam param);

  List<AttendDO> selectAll();

  Integer selectCount();

  int updateByPrimaryKey(AttendDO record);

  int deleteByParam(long departId, Date startDate, Date endDate);

  int batchInsert(@Param("attendDos") List<AttendDO> attendDos);
}